package mamikeji.liaowa.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import mamikeji.liaowa.R;

public class AddWaActivity extends BaseActivity implements View.OnClickListener {
    private static final String TAG = "AddWaActivity";
    private LinearLayout linearLayout_addwa_add,linearLayout_addwa_null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_addwa);
        getBase();
        setTitleName(R.string.fist_name );
        setTitleLeftBtn();
        init();
        initData();
    }

    /**
     * 加载布局控件
     */
    private void init() {
        linearLayout_addwa_add = (LinearLayout) findViewById(R.id.linearLayout_addwa_add);
        linearLayout_addwa_null = (LinearLayout) findViewById(R.id.linearLayout_addwa_null);

        linearLayout_addwa_add.setOnClickListener(this);
        linearLayout_addwa_null.setOnClickListener(this);
    }

    /**
     * 初始化数据
     */
    private void initData() {
    }

    @Override
    public void onClick(View view) {
        Intent mIntent = new Intent(AddWaActivity.this,WaMsgActivity.class);
        switch (view.getId()){
            case R.id.linearLayout_addwa_add:
                mIntent.putExtra("user_staic",true);
                break;
            case R.id.linearLayout_addwa_null :
                mIntent.putExtra("user_staic",false);
                break;
        }
        startActivity(mIntent);
    }

}
